    <style type="text/css">
    	#details{color: #5a5a5a;font-size: 0.3rem;}
    	.details-tips{min-height: 3.66rem;background: #fff;width: 100%;padding-left: 0.3rem;}
    	.details-item{height: auto;background: #fff;margin: 0.2rem auto;}
    	.details-footer{height: 1.03rem;background: #5297d8;position: fixed;bottom: 0;left: 0;width: 100%;color: #f5f5f5;font-size: 0.32rem;}
    	.details-foot-right{height: 100%;}
    	.details-tips-head{height: 1.84rem;}
    	.details-tips-head-left{padding-top: 0.2rem;width: 3rem;}
    	.details-tips-time{min-height: 0.97rem;font-size: 0.3rem;}
    	.details-tips-order{height: 0.97rem;font-size: 0.3rem;}
    	.details-item-list{height: 1rem;font-size:0.3rem;}
    	.xiaofei{padding: 0.25rem 0.2rem;background: #60c849;border-radius: 12px;color: #fff;margin-left: 0.34rem;margin-right: 0.2rem;line-height: 0;}
    	.huankuan{padding: 0.25rem 0.2rem;background: #ead24e;border-radius: 12px;color: #fff;margin-left: 0.34rem;margin-right: 0.2rem;line-height: 0;}
    	.details-text{font-size: 0.5rem;color: #000;margin-top: 0.6rem;}
    </style>
	<div id="plandetails">
		<!--模板-->
	</div>
	<script type="text/html" id="template_plandetails">
		<div class="details-tips">
			<div class="details-tips-head border flex flex-align-center">
				<div class="details-tips-head-left">
					<p style="font-size: 0.3rem;">账单金额(元)</p>
					<p class="details-text"><%= data.totalAmount %></p>
				</div>
				<div class="details-tips-head-left">
					<p style="font-size: 0.3rem;">保证金(元)</p>
					<p class="details-text"><%= data.capitalAmount %></p>
				</div>
				<div class="details-tips-head-left">
					<p style="font-size: 0.3rem;">手续费(元)</p>
					<p class="details-text"><%= data.poundageTotalAmt %></p>
				</div>
			</div>
			<div class="details-tips-order flex flex-align-center border">
				<p>还款笔数(笔)：<span style="color: #000;font-size: 0.38rem;"><%= data.repayTotalCnt %></span></p>
			</div>
			<div class="details-tips-time border flex flex-align-center">
				<p>还款日期分别为:</p>
				<div style="margin-left: 0.2rem;"><p class="p-time-auto"><%= data.planDays %></p></div>
			</div>
			<div class="details-tips-order flex flex-align-center">
				<p>订单号：<%= data.batchNo %></p>
			</div>
		</div>
		<!-- 还款消费list-->
		<%for (var k in data.planDetails){%> 
		<div class="details-item">
			<div class="details-item-list border flex flex-align-center">
				<div class="flex flex-align-center flex-1" style="color: #5297d8;margin-left: 0.34rem;">
					<i class="icon iconfont icon-calendar" style="margin-right: 0.05rem;"></i>
					<p><%= data.planDetails[k][0].planDate %></p>
				</div>
				<p style="margin-right: 0.3rem;">还款:<%= data.planDetails[k][0].repay %>元 | 消费:<%= data.planDetails[k][0].consume %>元</p>
			</div>
			<% for(var j in data.planDetails[k]) {%>
			<div class="details-item-list border flex flex-align-center">
				<div class="flex flex-align-center flex-1">
					<%if(data.planDetails[k][j].planType == 10){%>
					<%if(j == 0 && data.firstDay == k){%>
						<div class="xiaofei">保证金</div>
					<%}else{%>
					<div class="xiaofei">消费</div>
					<%}%>
					<%}else{%>
					<div class="huankuan">还款</div>
					<%}%>
					<p><%= data.planDetails[k][j].planTime %></p>
					<p style="margin-left: 0.2rem;color: #000;"><%= data.planDetails[k][j].planAmount %>元</p>
				</div>
				<%if(data.planDetails[k][j].status == 2 || data.planDetails[k][j].status == 1 || data.planDetails[k][j].status == 0){%>
				<i class="icon iconfont icon-shizhong" style="margin-right: 0.3rem;color: #ead24e;font-size: 0.36rem;"></i>
				<%}else if(data.planDetails[k][j].status == 3){%>
				<i class="icon iconfont icon-yiwancheng" style="margin-right: 0.3rem;color: #5297d8;font-size: 0.36rem;"></i>
				<%}%>
			</div>
			<%}%>
		</div>
		<%}%>
	</script>
